from flask import  Blueprint,request,redirect,session
bp = Blueprint('rank_bp',__name__,url_prefix='/rank')
from utils.decorator import json_response
from blueprint.rank_impl import *




# 根据传入的当前用户的日报id，返回具体单条日报的信息（业务逻辑对应为用户查看某一条具体的日报）
@bp.route('/AHP_weights')
# @json_response
def get_AHP_weights():
    return get_AHP_weights_impl()


@bp.route('/AHP_TOPSIS_weights')
def get_TOPSIS_AHP_weights():
    # return str(get_TOPSIS_AHP_weights_impl())
    return get_TOPSIS_AHP_weights_impl()